//
//  CompanyRegSuSViewController.m
//  CarTown
//
//  Created by xionghao on 15/8/14.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "CompanyRegSuSViewController.h"
#import "RootTabViewController.h"
#import "Puser.h"
@interface CompanyRegSuSViewController ()

@end

@implementation CompanyRegSuSViewController
+(instancetype)viewcontroller{
    CompanyRegSuSViewController *crsus=[XHMianStory instantiateViewControllerWithIdentifier:@"company_reg_sus"];
    return crsus;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title=@"完成";
    // Do any additional setup after loading the view.
}

-(UIStatusBarStyle)preferredStatusBarStyle{
    return UIStatusBarStyleLightContent;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)loginclick:(id)sender {
    [XHUserDeflaut setBool:YES forKey:LOGINSTATE];
    [XHUserDeflaut setInteger:[self.mode.power integerValue] forKey:POWER];
    [Puser userWithDict:self.mode.data WithPower:@(6)];
    [self pushToTab];
}
-(void)pushToTab{
    RootTabViewController *tab=[XHMianStory instantiateViewControllerWithIdentifier:@"tabroot"];
  
   
    [self.navigationController pushViewController:tab animated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
